package shapeandson;

public class TestShape {
	public static void main(String[] args) {
		Rectangle rectangle = new Rectangle(2.0, 3.0, "red", true);
		Circle circle = new Circle(1.0, "biue", true);
		Square square = new Square(1.0, "black", true);

		System.out.println(rectangle);
		System.out.println(rectangle.getArea());
		System.out.println(rectangle.getPerimeter());
		System.out.println("-------------------");
		System.out.println(circle);
		System.out.println(circle.getArea());
		System.out.println(circle.getPerimeter());
		System.out.println("---------------");
		System.out.println(square);
		System.out.println(square.getArea());
		System.out.println(square.getPerimeter());
	}
}
